package study07;

public class Test1 {
    public static void main(String[] args) {
        User user1=new User();   //利用无参构造器
        user1.setId("123456");
        user1.setPassword("123456");
        user1.setEmail("123456@bjsxt.com");
        user1.showInfo();
        User user2=new User("12345","12345","123456@bjsxt.com");//利用有参构造器
        user2.showInfo();
    }
}
